package com.ftu.study.pattern.decorate.condiment;

import com.ftu.study.pattern.decorate.Beverage;
import com.ftu.study.pattern.decorate.CondimentDecorator;

public class Soy extends CondimentDecorator {
    Beverage beverage;
    public Soy(Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription() + ", Soy";
    }

    @Override
    public double cost() {
        return .15 + beverage.cost();
    }

}
